package com.ssi.myshop.ui.fragment;


import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

import com.bumptech.glide.Glide;
import com.ssi.myshop.R;
import com.ssi.myshop.base.BaseFragment;

import butterknife.BindView;

/**
 * A simple {@link Fragment} subclass.
 */
public class CarFragment extends BaseFragment {

    @BindView(R.id.fragment_bar_title_tv)
    TextView mTitleTv;

    @BindView(R.id.iv_none)
    ImageView mIvNone;


    public CarFragment() {
        // Required empty public constructor
    }

    @Override
    protected View lodeRootView(LayoutInflater inflater, ViewGroup container) {
        return inflater.inflate(R.layout.fragment_lwith_bar_ayout,container,false);
    }

    @Override
    protected int getRootViewId() {
        return R.layout.fragment_car;
    }

    @Override
    protected void initView(View rootView) {
        mTitleTv.setText("购物车");
        setUpState(State.SUCCESS);
        Glide.with(getContext()).load("http://hbimg.b0.upaiyun.com/e1b1467beea0a9c7d6a56b32bac6d7e5dcd914f7c3e6-YTwUd6_fw658").into(mIvNone);
    }

}
